function show_cat($num){
    self.location = base_url + "listing.php#cat"+$num;
    $('.product_cat').hide();
    $('#product_cat'+$num).show();
}
    
function getHash() {
    var hash = window.location.hash;
    return hash.substring(1); // remove #
}